<template>
  <div>
    <p>Count: {{ count }}</p>
    <button @click="increment">+1</button>
  </div>
</template>

<script>
import { useCounterStore } from '../../stores/counter';

export default {
  setup() {
    const store = useCounterStore();
    console.log(store);
    
    return {
      count: store.count,
      increment: store.increment,
    };
  },
};
</script>